<?php use_helper('Text') ?>


<div class="title_section">
Votre article:
</div>
<div align="center" class="section">
<ul>

    <li class="inline" style="width:50px">
    	Prec
    </li>
    <li class="inline" style="width:50px">
    	Suiv
    </li>
    <li class="inline" style="width:80%">
    	Detail de la révision
    </li>

</ul>

<form action="<?php echo url_for("article/compare") ?>" method="post">
	<?php $i = 0;foreach ($revisions as $revision): ?>
<ul>
    <li class="inline" style="width:50px">
    	<input name="before" type="radio" <?php if ($i == 1 || count($revisions) == 1): ?>checked<?php endif;?> value="<?php echo $revision["idrevisions"]?>" />
    </li>
    <li class="inline" style="width:50px">
    	<input name="after" type="radio" <?php if ($i == 0): ?>checked<?php endif;?>  value="<?php echo $revision["idrevisions"]?>" />
    </li>
    <li class="inline" style="width:80%">
    <?php echo $revision["commentaire"]." par ".$revision["SfGuardUserProfile"]["User"]["username"]?>
    </li>
    <?php echo get_component('headers', 'moderation', array('Mtype' => "edit", 'MCred' => "MOD_REVISION", 'MModule' => "revision", 'MAction' => "edit", "Mid" => $revision["idrevisions"])); ?>
    <?php echo get_component('headers', 'moderation', array('Mtype' => "punir", 'MCred' => "MODERATION_USER", 'MModule' => "advert", 'MAction' => "new", "Mid" => $revision->getSfGuardUserProfile()->getUserId())); ?>
    <?php echo get_component('headers', 'moderation', array('Mtype' => "delete", 'MCred' => "SUPPR_REVISION", 'MModule' => "revision", 'MAction' => "delete", "Mid" => $revision["idrevisions"])); ?>
   
</ul>
    <?php $i++;endforeach;?>
    <input type="hidden" name="asso" value="<?php echo $asso ?>"/>
	<input name="comp" type="submit" value="Comparer les versions" />
</form>

</div>